#!/bin/bash
echo "=== Quick DevOps Development ==="

cd /d/vc/devops-platform/tools

echo "1. Toolchain status:"
./build-manager-fixed detect

echo ""
echo "2. Building project..."
./build-manager-fixed vs2022

if [ $? -eq 0 ]; then
    echo ""
    echo "3. Running application..."
    cd ../build
    if [ -f "Release/devops-platform.exe" ]; then
        ./Release/devops-platform.exe
    elif [ -f "devops-platform.exe" ]; then
        ./devops-platform.exe
    else
        echo "[ERROR] Executable not found!"
    fi
else
    echo "[ERROR] Build failed!"
fi
